<style>
#uliceAdmin{
	width:400px;
}
#uliceAdmin label{
	display:block;
	float:left;
	padding-top:8px;
}
#uliceAdmin ul{
	margin:5px;
}
#uliceAdmin table{
	width:100%;
	clear:both;
	margin:5px;
	border-top:1px solid #aaa;
	border-left:1px solid #aaa;
}
#uliceAdmin table tr[onclick]{
	cursor:pointer;
}
#uliceAdmin table tr[onclick]:hover{
	background:#2577BA;
	color:#fff;
}
#uliceAdmin table tr.head {
	background:#2577BA;
	color:#fff;
}
#uliceAdmin table tr td{
	padding:2px 4px;
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
}
#uliceAdmin input#newstreet{
	float:right;
	background-image:url(gui/icons/new.gif);
	background-position: 3px center;
	background-repeat:no-repeat;
	padding-left:14px;
}
</style>
<form method="post" action="javascript:void(0);" onsubmit="filterulice(this)" class="area" id="uliceAdmin">
	<div style="float:right; font-size:10px; color:#aaa;">{{$info}}</div>
	<h1>Ulice</h1>
	<fieldset>
	  <legend>Filter:</legend>
		<label for="ulica_filter">Naziv:</label><input type="text" name="ulica_filter" id="ulica_filter" value="{{$filter_ulica}}" />
		<input type="submit" value="filter" />
		<input type="button" onclick="novaUlica()" value="nova ulica" id="newstreet" />
	</fieldset>
	{{$comment_start}}
	<ul class="letter_filter">
		<li>Strana: </li>
		<li id="first"><a href="javascript:void(0)" onclick="GoPage({{$first_page}})" title="{{$first_page}}">prvi</a></li>
		<li id="prev"><a href="javascript:void(0)" onclick="GoPage({{$page_num}}-{{$skip_pages}},{{$last_page}})" title="-{{$skip_pages}}">prethodnih</a></li>
		{{%loop start page}}
		<li><a id="{{$current_page}}" href="javascript:void(0)" onclick="GoPage({{$page}})">{{$page}}</a></li>
		{{%loop end}}
		<li id="next"><a href="javascript:void(0)" onclick="GoPage({{$page_num}}+{{$skip_pages}},{{$last_page}})" title="+{{$skip_pages}}">sledecih</a></li>
		<li id="last"><a href="javascript:void(0)" onclick="GoPage({{$last_page}})" title="{{$last_page}}">poslednji</a></li>
	</ul>
	<table>
		<tr class="head">
			<td width="10%">šifra</td>
			<td>naziv</td>
		</tr>
		{{%loop start ulid}}
		<tr title="Izmeni..." onclick="editUlica(this,'{{$ulid}}','{{$ulname}}')" title="Izmenite naziv ulice...">
			<td>{{$ulid}}</td>
			<td>{{$ulname}}</td>
		</tr>
		{{%loop end}}
	</table>
	{{$comment_end}}
	{{$message}}
</form>